package com.issac.rabbitmq.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TopicReceiver {

    @RabbitListener(queues = "xiaomi")
    public void queue1(String msg){
        System.out.println("mq>>>"+msg);
    }

    @RabbitListener(queues = "huawei")
    public void queue2(String msg){
        System.out.println("mq>>>"+msg);
    }

    @RabbitListener(queues = "phone")
    public void queue3(String msg){
        System.out.println("mq>>>"+msg);
    }

}
